echo -e "{" > allrank.json
echo -e "\t\"diamondrank\":[" >> allrank.json
echo -e "\t\t`redis-cli -n 15 get diamondrank`" >> allrank.json
echo -e "\t],\n" >> allrank.json

echo -e "\t\"coinrank\":[" >> allrank.json
echo -e "\t\t`redis-cli -n 15 get coinrank`" >> allrank.json
echo -e "\t],\n" >> allrank.json

echo -e "\t\"drrank\":[" >> allrank.json
echo -e "\t\t`redis-cli -n 15 get drrank`" >> allrank.json
echo -e "\t],\n" >> allrank.json

echo -e "\t\"beaterrank\":[" >> allrank.json
echo -e "\t\t`redis-cli -n 15 get beaterrank`" >> allrank.json
echo -e "\t],\n" >> allrank.json

echo -e "\t\"shooterrank\":[" >> allrank.json
echo -e "\t\t`redis-cli -n 15 get shooterrank`" >> allrank.json
echo -e "\t],\n" >> allrank.json

echo -e "\t\"linkerrank\":[" >> allrank.json
echo -e "\t\t`redis-cli -n 15 get linkerrank`"  >> allrank.json  
echo -e "\t]" >> allrank.json
echo "}" >> allrank.json
